//
//  CareResultModel.swift
//  LongTermInsurance
//
//  Created by zolobdz on 2019/1/10.
//  Copyright © 2019年 HeChao. All rights reserved.
//

import UIKit
import ObjectMapper

class CareOrgResultModel: NSObject, Mappable {
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        hospitalNum <- map["INHOSPITALNO"]
        userName <- map["PERSIONNAME"]
        orgName <- map["ORGANIZATIONNAME"]
        inDate <- map["INDATE"]
        outDate <- map["OUTDATE"]
        applyNum <- map["APPLYNO"]
        if hospitalNum == 0 {
            hospitalNum <- map["InhospitalNo"]
            userName <- map["PersionName"]
            orgName <- map["OrganizationName"]
            inDate <- map["InDate"]
            outDate <- map["OutDate"]
            applyNum <- map["ApplyNo"]
        }
    }
    
    var hospitalNum: Int = 0
    var userName = ""
    var orgName = ""
    var inDate = ""
    var outDate = ""
    var applyNum: Int = 0
}


//[{\"INHOSPITALNO\":426.0,\"PERSIONNAME\":\"穆玉君\",\"ORGANIZATIONNAME\":\"苏州市怡养护理院有限公司\",\"INDATE\":\"2017-11-07T00:00:00\",\"OUTDATE\":null,\"APPLYNO\":515.0}]

//"[{\"inhospitalno\":426.0,\"persionname\":\"穆玉君\",\"organizationname\":\"苏州市怡养护理院有限公司\",\"indate\":\"2017-11-07t00:00:00\",\"outdate\":null,\"applyno\":515.0}]"
